package com.java.manage.service.api;

import com.java.manage.dao.CompanyMapper;
import com.java.manage.model.Company;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class CompanyApiServiceImpl implements CompanyApiService{

    @Autowired
    private CompanyMapper companyMapper;

    @Override
    public List<Company> listByIds(List<Integer> id) {
        return companyMapper.listByIds(id);
    }

    @Override
    public Company listAll(Integer id) {
        return companyMapper.get(id);
    }

}
